// api/request.js
import axios from '../utils/request'; // 引入封装好的 Axios 实例

// 示例：定义一个获取用户信息的请求
export const getUserInfo = () => {
  return axios.get('/user/info');
};

// 示例：定义一个登录请求
export const login = (credentials) => {
  return axios.post('/auth/login', credentials);
};

// 获取企业配置
export const getEnWechatConfig = (url) => {
  return axios.get('/api/enwechat/config', { params: { url } });
};

// 获取企业应用配置
export const getEnWechatAgentConfig = (url) => {
  return axios.get('/api/enwechat/agentconfig', { params: { url } });
};